﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;

namespace SPPD.model
{
    public class transaksiMap : ClassMap<transaksi>
    {
        public transaksiMap()
        {
            Id(x => x.id);
            Map(x => x.status_transaksi);
            Map(x => x.alasan);
            Map(x => x.koreksi);
            Map(x => x.saran);
            References(x => x.pengoreksi).Not.Nullable().ForeignKey("id_pegawai"); ;
            References(x => x.sppd).Not.Nullable().ForeignKey("id_sppd");
        }
    }
}
